home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / NGService / MMText.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-10  |  2.1 KB  |  85 lines

  1. /*
  2.  *      You may freely copy, distribute and reuse the code
  3.  *      in this example.  Scott Anguish disclaims any warranty of
  4.  *      any kind, expressed or implied, as to its fitness
  5.  *      for any particular use.
  6.  *        Please keep this notice intact
  7.  *      Written by: Scott Anguish  sanguish@digifix.com
  8.  */
  9.  
  10. #import <objc/Object.h>
  11. #import <appkit/appkit.h>
  12. #import <libc.h>                      /* MAXPATHLEN */
  13. #import <objc/List.h>
  14. #define NGHEADER    "-- NewsGrazer, a NeXTstep(tm) news reader, posting --"
  15.  
  16. #import "MMGraphicCell.h"
  17. #import "MMFolderCell.h"
  18. #import "MMDocumentCell.h"
  19.  
  20. @interface MMText:Text
  21. {
  22.     char *    iconPathList;
  23.     id    privateListener;
  24.  
  25.     BOOL    showFrom;
  26.     BOOL    showDate;
  27.     BOOL    showNewsgroups;
  28.     BOOL    showSubject;
  29.     BOOL    showMessageID;
  30.     BOOL    showPath;
  31.     BOOL    showFollowupTo;
  32.     BOOL    showExpires;
  33.     BOOL    showReplyTo;
  34.     BOOL    showSender;
  35.     BOOL    showReferences;
  36.     BOOL    showControl;
  37.     BOOL    showDistribution;
  38.     BOOL    showKeywords;
  39.     BOOL    showSummary;
  40.     BOOL    showApproved;
  41.     BOOL    showLines;
  42.     BOOL    showXref;
  43.     BOOL    showOrganization;
  44.  
  45.     char *contentsFrom;
  46.     char *contentsDate;
  47.     char *contentsNewsgroups;
  48.     char *contentsSubject;
  49.     char *contentsMessageID;
  50.     char *contentsPath;
  51.     char *contentsFollowupTo;
  52.     char *contentsExpires;
  53.     char *contentsReplyTo;
  54.     char *contentsSender;
  55.     char *contentsReferences;
  56.     char *contentsControl;
  57.     char *contentsDistribution;
  58.     char *contentsKeywords;
  59.     char *contentsSummary;
  60.     char *contentsApproved;
  61.     char *contentsLines;
  62.     char *contentsXref;
  63.     char *contentsOrganization;
  64.  
  65. }
  66.  
  67. - initFrame:(NXRect *)r;
  68. - free;
  69. - saveFileName:(char *)aFile;
  70. - openFileName:(char *)aFile;
  71. - openFileName:(char *)aFile ignoreHeader:(BOOL)ignoreHeader;
  72. - readFromMemory:(char *)data length:(int)theSize;
  73. - (int)iconEntered:(int)windowNum at:(double)x :(double)y
  74.     iconWindow:(int)iconWindowNum iconX:(double)iconX iconY:(double)iconY
  75.     iconWidth:(double)iconWidth iconHeight:(double)iconHeight
  76.     pathList:(char *)pathList;
  77. - (int)iconReleasedAt:(double)x :(double)y ok:(int *)flag;
  78. - delayIconReleasedAt:sender;
  79. - becomeFirstResponder;
  80. - appendRichFile:(char *)aFile;
  81. - appendBoldWord:(char *)aString;
  82. - (BOOL)isHeaderVisible:(const char*)header;
  83. - fileDragging;
  84. @end
  85.